package com.dinzeer.slashblade_useful_addon;



import com.dinzeer.slashblade_useful_addon.register.SUABlock;
import mods.flammpfeil.slashblade.item.ItemSlashBlade;
import net.minecraft.client.renderer.ItemBlockRenderTypes;
import net.minecraft.client.renderer.RenderType;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.RegisterItemDecorationsEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.registries.ForgeRegistries;

import static com.dinzeer.slashblade_useful_addon.Slashblade_useful_addon.MODID;

@EventBusSubscriber(
        modid = MODID,
        bus = Bus.MOD
)
public class SUAClientEvent {



    @SubscribeEvent
    public static void onClientSetup(FMLClientSetupEvent event) {
        event.enqueueWork(() -> {

            ItemBlockRenderTypes.setRenderLayer(SUABlock.proud_soul_sampling.get(), RenderType.cutout());
            ItemBlockRenderTypes.setRenderLayer(SUABlock.proud_soul_leaves.get(), RenderType.cutoutMipped());
            ItemBlockRenderTypes.setRenderLayer(SUABlock.proud_soul_log.get(), RenderType.cutoutMipped());
        });
    }





}
